package com.fansl.koala.quickdev.common.bean;

import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author fansl
 * @Description: TODO
 * @date 2020/3/20 20:30
 */
@Data
public class PageBean<T> implements Serializable {
    private long pageSize;
    private long pageNo;
    private long totalPage;
    private long totalCount;
    private String sortField;
    private String sortOrder;
    private List<T> data;

    public PageBean() {
        this.data = Collections.emptyList();
        this.totalPage = 0L;
        this.pageSize = 10L;
        this.pageNo = 1L;
    }
}
